package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2018/3/22.
 */

public class ScanGoodEntity {


    /**
     * returnCode : 1
     * returnMsg :
     * resultList : null
     * returnObject : {"id":"402880ee6204c81f016204c964170021","partId":"402880ee61f4deaf0161f4e5d699000e","whareHouseId":"402880ee620454bb016204605084000b","warehouseName":"1号仓库","wharePositionId":"402880ee620454bb01620460976a000c","wharePositionName":"测试仓位","vin":"71101SDET00ZZ","partCode":"20180308SN1DA1TFO11134115Z01198","goodsCode":"71101SDET00ZZ1D9V2RA20180308SN1DA1U1A87224306Z01198PP","price":0,"costPrice":-10,"costPriceQx":10,"priceQx":20,"num":0,"isdel":0,"createTime":"2018-03-08 16:45:30.0","updateTime":"2018-03-15 09:40:16.0","type":3,"quality":2,"stockNum":1,"supplierCode":"1D9V2RA","batchCode":"20180308","serialCode":"SN1DA1U1A87224306Z","state":1,"isOccupy":0,"orderCode":null,"lackpurchaseCode":null}
     */

    private int returnCode;
    private String returnMsg;
    private Object resultList;
    private ReturnObjectBean returnObject;

    public int getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(int returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public Object getResultList() {
        return resultList;
    }

    public void setResultList(Object resultList) {
        this.resultList = resultList;
    }

    public ReturnObjectBean getReturnObject() {
        return returnObject;
    }

    public void setReturnObject(ReturnObjectBean returnObject) {
        this.returnObject = returnObject;
    }

    public static class ReturnObjectBean implements Parcelable {
        /**
         * id : 402880ee6204c81f016204c964170021
         * partId : 402880ee61f4deaf0161f4e5d699000e
         * whareHouseId : 402880ee620454bb016204605084000b
         * warehouseName : 1号仓库
         * wharePositionId : 402880ee620454bb01620460976a000c
         * wharePositionName : 测试仓位
         * vin : 71101SDET00ZZ
         * partCode : 20180308SN1DA1TFO11134115Z01198
         * goodsCode : 71101SDET00ZZ1D9V2RA20180308SN1DA1U1A87224306Z01198PP
         * price : 0
         * costPrice : -10
         * costPriceQx : 10
         * priceQx : 20
         * num : 0
         * isdel : 0
         * createTime : 2018-03-08 16:45:30.0
         * updateTime : 2018-03-15 09:40:16.0
         * type : 3
         * quality : 2
         * stockNum : 1
         * supplierCode : 1D9V2RA
         * batchCode : 20180308
         * serialCode : SN1DA1U1A87224306Z
         * state : 1
         * isOccupy : 0
         * orderCode : null
         * lackpurchaseCode : null
         */

        private String id;
        private String partId;
        private String whareHouseId;
        private String warehouseName;
        private String wharePositionId;
        private String wharePositionName;
        private String vin;
        private String partCode;
        private String goodsCode;
        private int price;
        private int costPrice;
        private int costPriceQx;
        private int priceQx;
        private int num;
        private int isdel;
        private String createTime;
        private String updateTime;
        private int type;
        private int quality;
        private int stockNum;
        private String supplierCode;
        private String batchCode;
        private String serialCode;
        private int state;
        private int isOccupy;
        private String orderCode;
        private String lackpurchaseCode;
        private int scanCount = 0;
        private String partName;

        public String getPartName() {
            return partName;
        }

        public void setPartName(String partName) {
            this.partName = partName;
        }

        public int getScanCount() {
            return scanCount;
        }

        public void setScanCount(int scanCount) {
            this.scanCount = scanCount;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getPartId() {
            return partId;
        }

        public void setPartId(String partId) {
            this.partId = partId;
        }

        public String getWhareHouseId() {
            return whareHouseId;
        }

        public void setWhareHouseId(String whareHouseId) {
            this.whareHouseId = whareHouseId;
        }

        public String getWarehouseName() {
            return warehouseName;
        }

        public void setWarehouseName(String warehouseName) {
            this.warehouseName = warehouseName;
        }

        public String getWharePositionId() {
            return wharePositionId;
        }

        public void setWharePositionId(String wharePositionId) {
            this.wharePositionId = wharePositionId;
        }

        public String getWharePositionName() {
            return wharePositionName;
        }

        public void setWharePositionName(String wharePositionName) {
            this.wharePositionName = wharePositionName;
        }

        public String getVin() {
            return vin;
        }

        public void setVin(String vin) {
            this.vin = vin;
        }

        public String getPartCode() {
            return partCode;
        }

        public void setPartCode(String partCode) {
            this.partCode = partCode;
        }

        public String getGoodsCode() {
            return goodsCode;
        }

        public void setGoodsCode(String goodsCode) {
            this.goodsCode = goodsCode;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public int getCostPrice() {
            return costPrice;
        }

        public void setCostPrice(int costPrice) {
            this.costPrice = costPrice;
        }

        public int getCostPriceQx() {
            return costPriceQx;
        }

        public void setCostPriceQx(int costPriceQx) {
            this.costPriceQx = costPriceQx;
        }

        public int getPriceQx() {
            return priceQx;
        }

        public void setPriceQx(int priceQx) {
            this.priceQx = priceQx;
        }

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }

        public int getIsdel() {
            return isdel;
        }

        public void setIsdel(int isdel) {
            this.isdel = isdel;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getQuality() {
            return quality;
        }

        public void setQuality(int quality) {
            this.quality = quality;
        }

        public int getStockNum() {
            return stockNum;
        }

        public void setStockNum(int stockNum) {
            this.stockNum = stockNum;
        }

        public String getSupplierCode() {
            return supplierCode;
        }

        public void setSupplierCode(String supplierCode) {
            this.supplierCode = supplierCode;
        }

        public String getBatchCode() {
            return batchCode;
        }

        public void setBatchCode(String batchCode) {
            this.batchCode = batchCode;
        }

        public String getSerialCode() {
            return serialCode;
        }

        public void setSerialCode(String serialCode) {
            this.serialCode = serialCode;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public int getIsOccupy() {
            return isOccupy;
        }

        public void setIsOccupy(int isOccupy) {
            this.isOccupy = isOccupy;
        }

        public String getOrderCode() {
            return orderCode;
        }

        public void setOrderCode(String orderCode) {
            this.orderCode = orderCode;
        }

        public String getLackpurchaseCode() {
            return lackpurchaseCode;
        }

        public void setLackpurchaseCode(String lackpurchaseCode) {
            this.lackpurchaseCode = lackpurchaseCode;
        }

        public ReturnObjectBean() {
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.partId);
            dest.writeString(this.whareHouseId);
            dest.writeString(this.warehouseName);
            dest.writeString(this.wharePositionId);
            dest.writeString(this.wharePositionName);
            dest.writeString(this.vin);
            dest.writeString(this.partCode);
            dest.writeString(this.goodsCode);
            dest.writeInt(this.price);
            dest.writeInt(this.costPrice);
            dest.writeInt(this.costPriceQx);
            dest.writeInt(this.priceQx);
            dest.writeInt(this.num);
            dest.writeInt(this.isdel);
            dest.writeString(this.createTime);
            dest.writeString(this.updateTime);
            dest.writeInt(this.type);
            dest.writeInt(this.quality);
            dest.writeInt(this.stockNum);
            dest.writeString(this.supplierCode);
            dest.writeString(this.batchCode);
            dest.writeString(this.serialCode);
            dest.writeInt(this.state);
            dest.writeInt(this.isOccupy);
            dest.writeString(this.orderCode);
            dest.writeString(this.lackpurchaseCode);
            dest.writeInt(this.scanCount);
            dest.writeString(this.partName);
        }

        protected ReturnObjectBean(Parcel in) {
            this.id = in.readString();
            this.partId = in.readString();
            this.whareHouseId = in.readString();
            this.warehouseName = in.readString();
            this.wharePositionId = in.readString();
            this.wharePositionName = in.readString();
            this.vin = in.readString();
            this.partCode = in.readString();
            this.goodsCode = in.readString();
            this.price = in.readInt();
            this.costPrice = in.readInt();
            this.costPriceQx = in.readInt();
            this.priceQx = in.readInt();
            this.num = in.readInt();
            this.isdel = in.readInt();
            this.createTime = in.readString();
            this.updateTime = in.readString();
            this.type = in.readInt();
            this.quality = in.readInt();
            this.stockNum = in.readInt();
            this.supplierCode = in.readString();
            this.batchCode = in.readString();
            this.serialCode = in.readString();
            this.state = in.readInt();
            this.isOccupy = in.readInt();
            this.orderCode = in.readString();
            this.lackpurchaseCode = in.readString();
            this.scanCount = in.readInt();
            this.partName = in.readString();
        }

        public static final Creator<ReturnObjectBean> CREATOR = new Creator<ReturnObjectBean>() {
            @Override
            public ReturnObjectBean createFromParcel(Parcel source) {
                return new ReturnObjectBean(source);
            }

            @Override
            public ReturnObjectBean[] newArray(int size) {
                return new ReturnObjectBean[size];
            }
        };
    }
}
